<?php 
require_once("library/template.php");

if (isset($_POST["logout"])) {
    logout();
}
?>
<form action="" method="post">
<a href="user.php?name=<?php put($profileBox_username,'$profileBox_username');?>"><?php put($profileBox_username,'$profileBox_username');?></a>
<button type="submit" class="btn" value="Submit" name="logout">Logout</button>
</form>